import network from './request'



export const decrptMobile = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: '/user/decrptMobile',
        data,
        ...params
    });
}

export const userLogin = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: '/user/login',
        data,
        ...params
    });
}
export const getUserInfo = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/user/getUserInfo",
        data,
        ...params,
    });
};

export const changeUserinfo = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/user/changeUserinfo",
        data,
        ...params,
    });
};

export const checkRentUserStatus = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/checkRentUserStatus",
        data,
        ...params,
    });
};

export const lockUserCyclePayApply = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/lockUserCyclePayApply",
        data,
        ...params,
    });
};

export const confirmBindCard = (
    data: any,
    params?: Partial<Http.RequestOptions>
) => {
    return network.request({
        url: "/userRent/confirmBindCard",
        data,
        ...params,
    });
};


export const editUserRealAuth = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/editUserRealAuth",
        data,
        ...params,
    });
};


export const ktIdCardIocr = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/ktIdCardIocr",
        data,
        ...params,
    });
};


export const editUserRelation = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/editUserRelation",
        data,
        ...params,
    });
};


export const getUserRelations = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/userRent/getUserRelations",
        data,
        ...params,
    });
};

export const bindMainUser = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/frontUserData/bindMainUser",
        data,
        ...params,
    });
};

export const unBindMainUser = (data: any, params?: Partial<Http.RequestOptions>) => {
    return network.request({
        url: "/frontUserData/unBindMainUser",
        data,
        ...params,
    });
};

